<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: skyblue;
        }

        @keyframes heart {
            0% {
                transform: scale(0.5, 0.5) translateY(0px) rotate(45deg);
                /* background-color: white; */
            }

            50% {
                transform: scale(1, 1) translateY(100px) rotate(45deg);
                background-color: pink;
            }

            100% {
                transform: scale(0.5, 0.5) translateY(400px) rotate(45deg);
                /* background-color: white; */
            }

        }
        @keyframes colors {
            50% {
                background-color: pink;
            }
        }
        @keyframes box{
            /* 0%{
                opacity: 0;
            }
            50%{
                opacity: 0;
            } */
            100%{
                background-image: radial-gradient(rgb(129, 125, 125),transparent 50%);
                opacity: 0.9;
            }
        }

        .heart {
            margin: 50px auto;
            position: relative;
            width: 100px;
            height: 100px;
            background-color: white;
            animation: heart 2s linear 0s infinite alternate;
        }

        .heart::before {
            position: absolute;
            content: '';
            width: 100px;
            height: 100px;
            border-radius: 50px;
            background-color: white;
            transform: translateX(-50px);
            animation: colors 2s linear 0s infinite alternate;
        }

        .heart::after {
            position: absolute;
            content: '';
            width: 100px;
            height: 100px;
            border-radius: 50px;
            background-color: white;
            transform: translateY(-50px);
            animation: colors 2s linear 0s infinite alternate;
        }

        .shadow {
            position: absolute;
            top: 100px;
            left: 70px;
            transform: rotate(-45deg);
            width: 100px;
            height: 40px;
            border-radius: 50%;
            animation: box 2s linear 0s infinite alternate ;
            opacity: 0;
        }
    </style>
</head>

<body>
    <div class="heart">
        <div class="shadow"></div>
    </div>
</body>

</html>